# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxkbfile
pkgver=1.1.0
pkgrel=0
pkgdesc="X11 keyboard file manipulation library"
url="http://xorg.freedesktop.org/"
arch="all"
license="MIT"
depends=
makedepends="libx11-dev util-macros"
subpackages="$pkgname-dev"
source="https://www.x.org/releases/individual/lib/$pkgname-$pkgver.tar.bz2"

builddir="$srcdir/$pkgname-$pkgver"

build () {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -D -m644 "$srcdir"/$pkgname-$pkgver/COPYING \
		"$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

sha512sums="1c6a57564e916ccdc3df3c49b9f3589f701df0cec55112c12ddc35ac3ed556608c28fe98e5ba0ac1962e9a65ed1e90eb7e6169b564951bf55a7cf3499b745826  libxkbfile-1.1.0.tar.bz2"
